<?php
/**
 * Created by PhpStorm.
 * User: 耿经纬
 * Date: 2017/11/11 0011
 * Time: 17:16
 */

namespace app\admin\model;

use think\Model;
class News extends Model
{
    public  function  add($data){

      return   $this->data($data)->allowField(true)->save();

    }
    public function getList(){
        return   $this->select();
    }
    public  function  del($id)
    {
        return $this->where(['id'=>$id])->delete();
    }
}